package ooday02;

public class Doctor  extends Person {
  String title;
  Doctor(){}
    Doctor(String name, String address, int age, String title) {
      super(name,  age,address);
      this.title = title;
  }
  void cut(){System.out.println("家在"+address+age+"的，名字是"+name+"职称"+title+"医生"+"在操作手术");}
  void sayHi(){System.out.println("我是"+name+"医生，我今年"+age+"岁，我的职称是"+title);}
}
